package com.hl.web;


import com.hl.pojo.Myconsultants;
import com.hl.service.MyZixunService;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@RestController
@RequestMapping("/myZixun")
public class myZixunController{

      @Autowired
      private MyZixunService myZixunService;


    @RequestMapping("/myZixunListAll")
    public GeneralResult listAll(){

        List<Myconsultants> list = myZixunService.MyZixunListAll();

        System.out.println(list);
        return GeneralResult.success(list);

    }







    }

